﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;
using Koonsoft.HYCRM.Model;

public partial class Task_AllBranchTasks : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }

    private void BindData()
    {
        int branchID = Convert.ToInt32(BranchList.SelectedValue);
        int year = DateTime.Now.Year;
        int month = Convert.ToInt32(AuditMonth.SelectedValue);

        new TasksBLL().GetBranchTasksByMonth(branchID, month, year);

        ListView1.DataSource = new TasksBLL().GetBranchTasksByMonth(branchID, month, year); ;
        ListView1.DataBind();
    }

    protected void Unnamed1_Click(object sender, EventArgs e)
    {
        BindData();
    }
}